package pta;

import java.math.BigDecimal;
import java.util.Scanner;

public class java8_5 {

	public static void main(String[] args) {
		
	
		Scanner sc = new Scanner(System.in);
	while(true) {	
		
		String c = sc.nextLine();
		String d = sc.nextLine();
		BigDecimal a = new BigDecimal(c);
		BigDecimal b = new BigDecimal(d);
	
	  System.out.println(a.add(b));
	  System.out.println(a.multiply(b));
		
		
		
	}
	}

}
